/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 */
package com.jeesite.modules.goodsinfo.entity;

import org.hibernate.validator.constraints.Length;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;
import com.jeesite.common.mybatis.mapper.query.QueryType;

/**
 * js_goodsinfoEntity
 * @author 达芬奇
 * @version 2019-10-05
 */
@Table(name="${_prefix}goodsinfo", alias="a", columns={
		@Column(name="id", attrName="id", label="记录编号", isPK=true),
		@Column(name="uid", attrName="uid", label="商家用户编号"),
		@Column(name="goodsid", attrName="goodsid", label="出售货物编号"),
		@Column(name="goodsnum", attrName="goodsnum", label="库存量"),
		@Column(name="address", attrName="address", label="发货地址"),
		@Column(name="goodsdes", attrName="goodsdes", label="商品描述"),
	}, orderBy="a.id DESC"
)
public class Goodsinfo extends DataEntity<Goodsinfo> {
	
	private static final long serialVersionUID = 1L;
	private String uid;		// 商家用户编号
	private String goodsid;		// 出售货物编号
	private Double goodsnum;		// 库存量
	private String address;		// 发货地址
	private String goodsdes;		// 商品描述
	
	public Goodsinfo() {
		this(null);
	}

	public Goodsinfo(String id){
		super(id);
	}
	
	@Length(min=0, max=255, message="商家用户编号长度不能超过 255 个字符")
	public String getUid() {
		return uid;
	}

	public void setUid(String uid) {
		this.uid = uid;
	}
	
	@Length(min=0, max=255, message="出售货物编号长度不能超过 255 个字符")
	public String getGoodsid() {
		return goodsid;
	}

	public void setGoodsid(String goodsid) {
		this.goodsid = goodsid;
	}
	
	public Double getGoodsnum() {
		return goodsnum;
	}

	public void setGoodsnum(Double goodsnum) {
		this.goodsnum = goodsnum;
	}
	
	@Length(min=0, max=255, message="发货地址长度不能超过 255 个字符")
	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}
	
	@Length(min=0, max=255, message="商品描述长度不能超过 255 个字符")
	public String getGoodsdes() {
		return goodsdes;
	}

	public void setGoodsdes(String goodsdes) {
		this.goodsdes = goodsdes;
	}
	
}